package com.hongye.consult.dao;

import com.hongye.consult.entity.HongyeAuditEntity;
import com.hongye.consult.entity.HouseEntity;
import com.hongye.consult.vo.BrokerParticularsVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author fyd
 * @email 2104371759@qq.com
 * @date 2022/4/27
 * @time 8:39
 */
public interface BrokerDao {

    /**
     * 获取经纪人基本信息
     * @param id 经纪人编号
     * @return
     */
    BrokerParticularsVo getUserinfo(@Param("id") Integer id);

    /**
     *对应经纪人在售房屋
     * @param id 经纪人编号
     * @return
     */
    List<HouseEntity> getHouseInfo(@Param("id") Integer id);

    /**
     * 根据编号查找类型
     * @param issueTypeId 类型编号
     * @return
     */
    String selectTypeById(@Param("issueTypeId") Integer issueTypeId);

    /**
     * 帮我租个房
     * @param entity
     * @return
     */
    int addAuditByRenting(@Param("entity") HongyeAuditEntity entity);
}
